# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from django.http import HttpResponse
import json
from service import studentControl

# Create your views here.


def student(request):
	if request.method == 'POST':
		detail_dict = studentControl.get_detail(request)
		detail_dict = list(detail_dict)
		return HttpResponse(json.dumps(detail_dict))

	return render(request, 'student.html')